//
//  NSDate+MacFormatter.h
//  JZUtilClass
//
//  Created by wanhongios on 17/1/11.
//  Copyright © 2017年 wanhongios. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSDate (MacFormatter)
+(NSDateFormatter *)jz_formatter;
+(NSDateFormatter *)jz_formatterWithoutTime;
+(NSDateFormatter *)jz_formatterWithoutDate;

-(NSString *)jz_formatWithUTCTimeZone;
-(NSString *)jz_formatWithLocalTimeZone;
-(NSString *)jz_formatWithTimeZoneOffset:(NSTimeInterval)offset;
-(NSString *)jz_formatWithTimeZone:(NSTimeZone *)timezone;

-(NSString *)jz_formatWithUTCTimeZoneWithoutTime;
-(NSString *)jz_formatWithLocalTimeZoneWithoutTime;
-(NSString *)jz_formatWithTimeZoneOffsetWithoutTime:(NSTimeInterval)offset;
-(NSString *)jz_formatWithTimeZoneWithoutTime:(NSTimeZone *)timezone;

-(NSString *)jz_formatWithUTCWithoutDate;
-(NSString *)jz_formatWithLocalTimeWithoutDate;
-(NSString *)jz_formatWithTimeZoneOffsetWithoutDate:(NSTimeInterval)offset;
-(NSString *)jz_formatTimeWithTimeZone:(NSTimeZone *)timezone;


+ (NSString *)jz_currentDateStringWithFormat:(NSString *)format;
+ (NSDate *)jz_dateWithSecondsFromNow:(NSInteger)seconds;
+ (NSDate *)jz_dateWithYear:(NSInteger)year month:(NSUInteger)month day:(NSUInteger)day;
- (NSString *)jz_dateWithFormat:(NSString *)format;
@end
